package com.lxy.seata.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "seatatest-storage")
public interface TStroageService {

    @PostMapping("/stroage/decrease")
    int decrease(@RequestParam("productId") Long productId,@RequestParam("count") Integer count);

}
